    <ul class="txtMenu">
    <?php foreach ($menu as $label => $url): ?>
        <li>
            <?php if ($currentItem == $url): ?>
            <a href="<?php echo url_for($url); ?>" class="<?php echo str_replace('@', '', $url); ?>-active"><span class="<?php echo str_replace('@', '', $url); ?>-active"><?php echo $label ?></span></a>
            <?php else: ?>
            <a href="<?php echo url_for($url); ?>" class="<?php echo str_replace('@', '', $url); ?>"><span><?php echo $label ?></span></a>
            <?php endif; ?>
        </li>
    <?php endforeach; ?>
    </ul>